<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div id="member_page">
	<header>
		<div id="title">
			<b>Information</b>
		</div>

		<div id="bar"></div>
	</header>

	<section id="member_form">
		<table id="table-simple" summary="사용자 등록 결과">
			<tr>
				<th width="120">코스번호</th>
				<td width="460">${course.courseId }</td>
			</tr>
			<tr>
				<th>코스이름</th>
				<td>${course.courseName }</td>
			</tr>
			<tr>
				<th>강의실</th>
				<td>${course.classRoom }</td>
			</tr>

			<tr>
				<th>시작날짜</th>
				<td>${course.startDate }</td>
			</tr>
			<tr>
				<th>종료날짜</th>
				<td>${course.endDate }</td>
			</tr>
			<tr>
				<th>과목 리스트</th>
				<td><c:forEach items="${course.subjectList }" var="subject">
					${subject.title }<br>
					</c:forEach></td>
			</tr>
		</table>
		<p align="center">
		<form method="POST" action="<c:url value="/course/modifyCourse"/>">
			<input name="courseId" type="hidden" value="${course.courseId }" />
			<input type="submit" value="수정하기" />
		</form>

	</section>
</div>